<%--
  <p>51void.com</p>
  User: cjp
  Date: 2007-5-26
  Time: 10:58:11
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <style type="text/css">
        body {
            font-family: verdana, helvetica, arial, sans-serif;
        }

        #mainMenu {
            background-color: #EEE;
            border: 0 solid #CCC;
            color: #000;
            width: 100%;
        }

        #menuList {
            margin: 0;
            padding: 10px 0 10px 15px;
        }

        li.menubar {
            font-size: 12px;
            line-height: 1.5em;
            list-style: none outside;
        }

        .menu, .submenu {
            margin-left: 15px;
            padding: 0;
        }

        .menu li, .submenu li {
            list-style: none outside;
        }

        .menu li a, .submenu li a {
            background-color: transparent;
            color: #000;
            font-size: 12px;
            padding-left: 15px;
            text-decoration: none;
        }

        .menu li a:hover, submenu li a:hover {
            text-decoration: underline;
        }

    </style>
</head>
<body>
<div id="mainMenu">
    <div style="float:left;width:70%"><a href="${ctx}/forum.do" target="_blank">全部版块</a></div>
    <div style="float:left;width:30%;text-align:right"><a href="${ctx}/admin/forumManage.do?addGroupForm">添加顶层分类</a>
    </div>
    <ul id="menuList">
        <c:forEach items="${actionBean.forums}" var="oneForum">
            <li class="menubar">
                <div style="width:30%;float:left">
                    <a href="${ctx}/viewForum.do?forumId=${oneForum.id}" target="_blank">${oneForum.name}</a>
                </div>
                <div style="width:70%;float:left">
                    <a href="${ctx}/admin/forumManage.do?setMasterForm&fid=${oneForum.id}">版主设置</a>
                    <a href="${ctx}/admin/forumManage.do?addForumForm&parentId=${oneForum.id}">添加子论坛</a>
                    <a href="${ctx}/admin/forumManage.do?addGroupForm&fid=${oneForum.id}&parentId=0">修改</a>
                    <c:choose>
                        <c:when test="${oneForum.status>=0}">
                            <a href="${ctx}/admin/forumManage.do?closeForum&fid=${oneForum.id}">关闭</a>
                        </c:when>
                        <c:otherwise>
                            <a href="${ctx}/admin/forumManage.do?openForum&fid=${oneForum.id}">开放</a>
                        </c:otherwise>
                    </c:choose>

                    <a href="${ctx}/admin/forumManage.do?moveUp&fid=${oneForum.id}&parentId=0">上移</a>
                    <a href="${ctx}/admin/forumManage.do?moveDown&fid=${oneForum.id}&parentId=0">下移</a>
                </div>
                <ul class="menu">
                    <c:forEach items="${oneForum.childs}" var="twoForum">
                        <li>
                            <div style="width:30%;float:left">
                                <a href="${ctx}/viewForum.do?forumId=${twoForum.id}"
                                   target="_blank">${twoForum.name}</a>
                            </div>
                            <div style="width:70%;float:left">
                                <a href="${ctx}/admin/forumManage.do?setMasterForm&fid=${twoForum.id}">版主设置</a>
                                <a href="${ctx}/admin/forumManage.do?addForumForm&parentId=${twoForum.id}">添加子论坛</a>
                                <a href="${ctx}/admin/forumManage.do?addTagForm&fid=${twoForum.id}">添加TAG</a>

                                <a href="${ctx}/admin/forumManage.do?addForumForm&fid=${twoForum.id}&parentId=${oneForum.id}">修改</a>
                                <c:choose>
                                    <c:when test="${twoForum.status>=0}">
                                        <a href="${ctx}/admin/forumManage.do?closeForum&fid=${twoForum.id}">关闭</a>
                                    </c:when>
                                    <c:otherwise>
                                        <a href="${ctx}/admin/forumManage.do?openForum&fid=${twoForum.id}">开放</a>
                                    </c:otherwise>
                                </c:choose>
                                <a href="${ctx}/admin/forumManage.do?moveUp&fid=${twoForum.id}&parentId=${oneForum.id}">上移</a>
                                <a href="${ctx}/admin/forumManage.do?moveDown&fid=${twoForum.id}&parentId=${oneForum.id}">下移</a>
                            </div>
                            <ul class="submenu">
                                <c:forEach items="${twoForum.childs}" var="threeForum">
                                    <li>
                                        <div style="width:30%;float:left">
                                            <a href="${ctx}/viewForum.do?forumId=${threeForum.id}"
                                               target="_blank">${threeForum.name}</a>
                                        </div>
                                        <div style="width:70%;float:left">
                                            <a href="${ctx}/admin/forumManage.do?setMasterForm&fid=${threeForum.id}">版主设置</a>
                                            <a href="${ctx}/admin/forumManage.do?addTagForm&fid=${threeForum.id}">添加TAG</a>
                                            <a href="${ctx}/admin/forumManage.do?addForumForm&fid=${threeForum.id}&parentId=${twoForum.id}">修改</a>
                                            <c:choose>
                                                <c:when test="${threeForum.status>=0}">
                                                    <a href="${ctx}/admin/forumManage.do?closeForum&fid=${threeForum.id}">关闭</a>
                                                </c:when>
                                                <c:otherwise>
                                                    <a href="${ctx}/admin/forumManage.do?openForum&fid=${threeForum.id}">开放</a>
                                                </c:otherwise>
                                            </c:choose>
                                            <a href="${ctx}/admin/forumManage.do?moveUp&fid=${threeForum.id}&parentId=${twoForum.id}">上移</a>
                                            <a href="${ctx}/admin/forumManage.do?moveDown&fid=${threeForum.id}&parentId=${twoForum.id}">下移</a>
                                        </div>
                                    </li>
                                </c:forEach>
                            </ul>
                        </li>
                    </c:forEach>
                </ul>
            </li>
        </c:forEach>
    </ul>
</div>
</body>
</html>

